package com.huang;

import org.apache.shiro.crypto.hash.Md5Hash;
import sun.security.provider.MD5;

public class TestShiroMD5 {
    public static void main(String[] args) {
      //  Md5Hash md5Hash=new Md5Hash("123");
        //md5 + salt 处理
    //  Md5Hash md5Hash=new Md5Hash("123","xo*7px");
    //md5 salt  hash 散列
        Md5Hash md5Hash=new Md5Hash("123","xo*7px",1024);
        System.out.println(md5Hash.toHex());

    }
}
